﻿<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="v-a.css" type="text/css">
	</head>

	<body>
		<?php if($_SESSION['username']!=""): ?>
		
		<form name='logout' method='post' action="index.php">
				<table width='300px'>
					<tr HEIGHT="10">
						<td>
							user: <b><?php print $_SESSION['username']; print "</b><br>egyenleg: (<b>".egyenleg($_SESSION['username'])[0]."</b> peták)"?>
						</td>
						<td>
							<input type='submit'  class='button' name='Logout' value='kilépés' />
						</td>
					</tr>
				</table>
			</form>
		<?php else : ?>
			<table width='300px'>
					<tr HEIGHT="58">
						<td>
							&nbsp;
						</td>
						<td>
							&nbsp;
						</td>
					</tr>
				</table>
		<?php endif; ?>
		
	</body>
</html>